Optimal. Leaf size=118 \[ \frac {(A+B) \cos (e+f x) (a \sin (e+f x)+a)^m \, _2F_1\left (1,m+\frac {1}{2};m+\frac {3}{2};\frac {1}{2} (\sin (e+f x)+1)\right )}{f (2 m+1) \sqrt {c-c \sin (e+f x)}}-\frac {2 B \cos (e+f x) (a \sin (e+f x)+a)^m}{f (2 m+1) \sqrt {c-c \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.28, antiderivative size = 118, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 38, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {2973, 2745, 2667, 68} \[ \frac {(A+B) \cos (e+f x) (a \sin (e+f x)+a)^m \, _2F_1\left (1,m+\frac {1}{2};m+\frac {3}{2};\frac {1}{2} (\sin (e+f x)+1)\right )}{f (2 m+1) \sqrt {c-c \sin (e+f x)}}-\frac {2 B \cos (e+f x) (a \sin (e+f x)+a)^m}{f (2 m+1) \sqrt {c-c \sin (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 68
Rule 2667
Rule 2745
Rule 2973
Rubi steps
\begin {align*} \int \frac {(a+a \sin (e+f x))^m (A+B \sin (e+f x))}{\sqrt {c-c \sin (e+f x)}} \, dx &=-\frac {2 B \cos (e+f x) (a+a \sin (e+f x))^m}{f (1+2 m) \sqrt {c-c \sin (e+f x)}}+(A+B) \int \frac {(a+a \sin (e+f x))^m}{\sqrt {c-c \sin (e+f x)}} \, dx\\ &=-\frac {2 B \cos (e+f x) (a+a \sin (e+f x))^m}{f (1+2 m) \sqrt {c-c \sin (e+f x)}}+\frac {((A+B) \cos (e+f x)) \int \sec (e+f x) (a+a \sin (e+f x))^{\frac {1}{2}+m} \, dx}{\sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}\\ &=-\frac {2 B \cos (e+f x) (a+a \sin (e+f x))^m}{f (1+2 m) \sqrt {c-c \sin (e+f x)}}+\frac {(a (A+B) \cos (e+f x)) \operatorname {Subst}\left (\int \frac {(a+x)^{-\frac {1}{2}+m}}{a-x} \, dx,x,a \sin (e+f x)\right )}{f \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}\\ &=-\frac {2 B \cos (e+f x) (a+a \sin (e+f x))^m}{f (1+2 m) \sqrt {c-c \sin (e+f x)}}+\frac {(A+B) \cos (e+f x) \, _2F_1\left (1,\frac {1}{2}+m;\frac {3}{2}+m;\frac {1}{2} (1+\sin (e+f x))\right ) (a+a \sin (e+f x))^m}{f (1+2 m) \sqrt {c-c \sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 2.23, size = 200, normalized size = 1.69 \[ \frac {2^{-2 m-\frac {3}{2}} \sin \left (\frac {1}{4} (2 e+2 f x+\pi )\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) (a (\sin (e+f x)+1))^m \left (2^{2 m+1} (A+B) \, _2F_1\left (1,2 m+1;2 (m+1);\sin \left (\frac {1}{4} (2 e+2 f x+\pi )\right )\right )+(A+B) \sec ^2\left (\frac {1}{8} (2 e+2 f x-\pi )\right )^{2 m+1} \, _2F_1\left (2 m+1,2 m+1;2 (m+1);\frac {1}{2} \left (1-\tan ^2\left (\frac {1}{8} (2 e+2 f x-\pi )\right )\right )\right )-B 2^{2 m+3}\right )}{(2 f m+f) \sqrt {c-c \sin (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.47, size = 0, normalized size = 0.00 \[ {\rm integral}\left (-\frac {{\left (B \sin \left (f x + e\right ) + A\right )} \sqrt {-c \sin \left (f x + e\right ) + c} {\left (a \sin \left (f x + e\right ) + a\right )}^{m}}{c \sin \left (f x + e\right ) - c}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \sin \left (f x + e\right ) + A\right )} {\left (a \sin \left (f x + e\right ) + a\right )}^{m}}{\sqrt {-c \sin \left (f x + e\right ) + c}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.02, size = 0, normalized size = 0.00 \[ \int \frac {\left (a +a \sin \left (f x +e \right )\right )^{m} \left (A +B \sin \left (f x +e \right )\right )}{\sqrt {c -c \sin \left (f x +e \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \sin \left (f x + e\right ) + A\right )} {\left (a \sin \left (f x + e\right ) + a\right )}^{m}}{\sqrt {-c \sin \left (f x + e\right ) + c}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {\left (A+B\,\sin \left (e+f\,x\right )\right )\,{\left (a+a\,\sin \left (e+f\,x\right )\right )}^m}{\sqrt {c-c\,\sin \left (e+f\,x\right )}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (a \left (\sin {\left (e + f x \right )} + 1\right )\right )^{m} \left (A + B \sin {\left (e + f x \right )}\right )}{\sqrt {- c \left (\sin {\left (e + f x \right )} - 1\right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________